package com.ruoyi.project.article.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.ruoyi.framework.aspectj.lang.annotation.Excel;
//import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 文章表 fx_article
 * 
 * @author fanxin
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
//    //@Excel(name = "文字ID", cellType = ColumnType.NUMERIC)
    private Long id;

    /** 任务名称 */
//    //@Excel(name = "文章标题")
    private String title;

    /** 任务组名 */
//    //@Excel(name = "文章链接")
    private String link;
    
    /** 任务状态（0正常 1暂停） */
//    //@Excel(name = "文章状态", readConverterExp = "0=正常,1=暂停")
    private String status;
    
//    //@Excel(name = "文章简介")
    private String introduction;
    
    public Long getId()
    {
        return id;
    }

    @NotBlank(message = "标题不能为空")
    @Size(min = 0, max = 64, message = "标题不能超过64个字符")
    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getLink()
    {
        return link;
    }

    public void setLink(String link)
    {
        this.link = link;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getIntroduction()
    {
        return introduction;
    }

    public void setIntroduction(String introduction)
    {
        this.introduction = introduction;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("link", getLink())
            .append("introduction", getIntroduction())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}